﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScannerSuccessRate.PLC
{
    public class InStorageScannerPortRead
    {
        /// 交互序号
        /// </summary>
        public int ReadRandomNo { get; set; }
        /// <summary>
        /// 到位
        /// </summary>
        public short ReadInPlaceComplete { get; set; }
        /// <summary>
        /// 允许下发
        /// </summary>
        public short ReadEnableSend { get; set; }
        /// <summary>
        /// 校验码
        /// </summary>
        public short ReadCheckCode { get; set; }
        public string ToString1()
        {
            return $"交互序号={ReadRandomNo},到位={ReadInPlaceComplete},允许下发={ReadEnableSend}";
        }
        public override string ToString()
        {
            return $"{{{nameof(ReadRandomNo)}={ReadRandomNo.ToString()}, {nameof(ReadInPlaceComplete)}={ReadInPlaceComplete.ToString()}, {nameof(ReadEnableSend)}={ReadEnableSend.ToString()}, {nameof(ReadCheckCode)}={ReadCheckCode.ToString()}}}";
        }
    }
}
